package com.example.warehouse.common.ex;


import com.example.warehouse.common.web.ServiceCode;
import lombok.Getter;


/**
 * @author 欧胤
 * @version 1.0
 * @description: 自定义的异常类
 * @date 2023/6/14 16:44
 */
public class ServiceException extends RuntimeException{
    @Getter
    private ServiceCode serviceCode;
    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode=serviceCode;
    }
}
